home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Bright / metacity-1 / metacity-theme-1.xml next >
Encoding:
Extensible Markup Language  |  2009-05-14  |  13.7 KB  |  377 lines

  1. <?xml version="1.0"?>
  2. <metacity_theme>
  3. <info>
  4.   <name>Bright</name>
  5.   <author>Gaute Lindkvist <lindkvis@linpro.no></author>
  6.   <copyright> Havoc Pennington, 2002 for Atlanta. Â Gaute Lindkvist, 2002 for modifications</copyright>
  7.   <date>February 3, 2002</date>
  8.   <description>Simple theme based on Havoc Pennington's Atlanta</description>
  9. </info>
  10.  
  11. <frame_geometry name="normal">
  12.   <distance name="left_width" value="6"/>
  13.   <distance name="right_width" value="6"/>
  14.   <distance name="bottom_height" value="7"/>
  15.   <distance name="left_titlebar_edge" value="6"/>
  16.   <distance name="right_titlebar_edge" value="6"/>
  17.   <distance name="button_width" value="15"/>
  18.   <distance name="button_height" value="15"/>
  19.   <distance name="title_vertical_pad" value="4"/>
  20.   <border name="title_border" left="3" right="4" top="4" bottom="3"/>
  21.   <border name="button_border" left="1" right="2" top="2" bottom="1"/>
  22. </frame_geometry>
  23.  
  24. <!-- strip borders off the normal geometry -->
  25. <frame_geometry name="normal_small_borders" parent="normal">
  26.   <distance name="left_width" value="4"/>
  27.   <distance name="right_width" value="4"/>
  28.   <distance name="bottom_height" value="5"/>
  29.   <distance name="left_titlebar_edge" value="4"/>
  30.   <distance name="right_titlebar_edge" value="4"/>
  31. </frame_geometry>
  32.  
  33. <frame_geometry name="utility" title_scale="xx-small">
  34.   <distance name="left_width" value="3"/>
  35.   <distance name="right_width" value="3"/>
  36.   <distance name="bottom_height" value="4"/>
  37.   <distance name="left_titlebar_edge" value="3"/>
  38.   <distance name="right_titlebar_edge" value="3"/>
  39.   <distance name="button_width" value="11"/>
  40.   <distance name="button_height" value="11"/>
  41.   <distance name="title_vertical_pad" value="1"/>
  42.   <border name="title_border" left="3" right="4" top="3" bottom="3"/>
  43.   <border name="button_border" left="0" right="0" top="1" bottom="1"/>
  44. </frame_geometry>
  45.  
  46. <frame_geometry name="border" has_title="false">
  47.   <distance name="left_width" value="4"/>
  48.   <distance name="right_width" value="4"/>
  49.   <distance name="bottom_height" value="4"/>
  50.   <distance name="left_titlebar_edge" value="0"/>
  51.   <distance name="right_titlebar_edge" value="0"/>
  52.   <distance name="button_width" value="0"/>
  53.   <distance name="button_height" value="0"/>
  54.   <distance name="title_vertical_pad" value="4"/>
  55.   <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  56.   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  57. </frame_geometry>
  58.  
  59. <!-- define constants -->
  60. <constant name="ArrowWidth" value="7"/>
  61. <constant name="ArrowHeight" value="5"/>
  62. <constant name="ButtonIPad" value="3"/>
  63. <constant name="ThickLineWidth" value="3"/>
  64. <constant name="IconTitleSpacing" value="2"/>
  65. <constant name="SpacerWidth" value="7"/>
  66. <constant name="SpacerHeight" value="11"/>
  67.  
  68. <!-- Buttons -->
  69.  
  70. <draw_ops name="button_normal_bg">
  71. <rectangle color="gtk:fg[NORMAL]" filled="false"
  72.              x="0" y="0" width="width-2" height="height-2"/>
  73. <line color="#BBBBBB"
  74.         x1="1"
  75.         y1="height-1"
  76.         x2="width"
  77.         y2="height-1"
  78.         width="1"/>
  79. <line color="#BBBBBB"
  80.         x1="width-1"
  81.         y1="1"
  82.         x2="width-1"
  83.         y2="height-1"
  84.         width="1"/>
  85. <rectangle color="gtk:base[NORMAL]" filled="true"
  86.              x="1" y="1" width="width-3" height="height-3"/>
  87. </draw_ops>
  88.  
  89. <draw_ops name="button_pressed_bg">
  90.   <gtk_box state="active" shadow="in" x="0" y="0" width="width" height="height"/>
  91. </draw_ops>
  92.  
  93. <draw_ops name="menu_button">
  94.   <clip x="0" y="0" width="width" height="height"/>
  95. <icon  x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2"
  96.          y="(height-mini_icon_height) / 2"
  97.          width="mini_icon_width-1" height="mini_icon_height-1"/>
  98. </draw_ops>
  99.  
  100. <draw_ops name="menu_button_normal">
  101.   <include name="menu_button"/>
  102. </draw_ops>
  103. <draw_ops name="menu_button_pressed">
  104.   <include name="menu_button"/>
  105. </draw_ops>
  106.  
  107. <draw_ops name="minimize_button">
  108.   <line color="gtk:fg[NORMAL]"
  109.         x1="ButtonIPad"
  110.         y1="height - ButtonIPad - ThickLineWidth + 1"
  111.         x2="width - ButtonIPad-1"
  112.         y2="height - ButtonIPad - ThickLineWidth + 1"
  113.         width="2"/> <!-- FIXME allow a constant here -->
  114. </draw_ops>
  115.  
  116. <draw_ops name="minimize_button_normal">
  117.   <include name="button_normal_bg"/>
  118.   <include name="minimize_button"/>
  119. </draw_ops>
  120.  
  121. <draw_ops name="minimize_button_pressed">
  122.   <include name="button_pressed_bg"/>
  123.   <include name="minimize_button"/>
  124. </draw_ops>
  125.  
  126. <draw_ops name="maximize_button">
  127.   <rectangle color="gtk:fg[NORMAL]" filled="false"
  128.              x="ButtonIPad" y="ButtonIPad" width="width-ButtonIPad*2-2" height="height-ButtonIPad*2-2"/>
  129.   <line color="gtk:fg[NORMAL]" width="2"
  130.         x1="ButtonIPad" y1="ButtonIPad+1" x2="width-ButtonIPad-1" y2="ButtonIPad+1"/>
  131. </draw_ops>
  132.  
  133. <draw_ops name="maximize_button_normal">
  134.   <include name="button_normal_bg"/>
  135.   <include name="maximize_button"/>
  136. </draw_ops>
  137.  
  138. <draw_ops name="maximize_button_pressed">
  139.   <include name="button_pressed_bg"/>
  140.   <include name="maximize_button"/>
  141. </draw_ops>
  142.  
  143. <draw_ops name="mini_window_icon">
  144.   <rectangle color="gtk:fg[NORMAL]" filled="false"
  145.              x="0" y="0" width="width-3" height="height-3"/>
  146.   <rectangle color="gtk:fg[NORMAL]" filled="false"
  147.              x="0" y="0" width="width-3" height="height-3"/>
  148.   <line color="gtk:fg[NORMAL]" width="1"
  149.         x1="0" y1="1" x2="width-1" y2="1"/>
  150. </draw_ops>
  151.  
  152. <draw_ops name="restore_button">
  153.   <include name="mini_window_icon" 
  154.            x="ButtonIPad" y="ButtonIPad" 
  155.            width="width - 5 - ButtonIPad"
  156.            height="height - 5 - ButtonIPad"/>
  157.   <include name="mini_window_icon" 
  158.            x="3 + ButtonIPad" y="3 + ButtonIPad"
  159.            width="width - 5 - ButtonIPad"
  160.            height="height - 5 - ButtonIPad"/>
  161. </draw_ops>
  162.  
  163. <draw_ops name="restore_button_normal">
  164.   <include name="button_normal_bg"/>
  165.   <include name="restore_button"/>
  166. </draw_ops>
  167.  
  168. <draw_ops name="restore_button_pressed">
  169.   <include name="button_pressed_bg"/>
  170.   <include name="restore_button"/>
  171. </draw_ops>
  172.  
  173. <draw_ops name="close_button">
  174.   <line color="gtk:fg[NORMAL]"
  175.         x1="ButtonIPad" y1="ButtonIPad"
  176.         x2="width - ButtonIPad - 2" y2="height - ButtonIPad - 2"/>
  177.   <line color="gtk:fg[NORMAL]"
  178.         x1="ButtonIPad" y1="height - ButtonIPad - 2"
  179.         x2="width - ButtonIPad - 2" y2="ButtonIPad"/>
  180. </draw_ops>
  181.  
  182. <draw_ops name="close_button_normal">
  183.   <include name="button_normal_bg"/>
  184.   <include name="close_button"/>
  185. </draw_ops>
  186.  
  187. <draw_ops name="close_button_pressed">
  188.   <include name="button_pressed_bg"/>
  189.   <include name="close_button"/>
  190. </draw_ops>
  191.  
  192. <draw_ops name="outer_bevel">
  193.   <rectangle color="gtk:fg[NORMAL]"
  194.              x="0" y="0" width="width-1" height="height-1"/>
  195.   <line color="gtk:light[NORMAL]"
  196.         x1="1" y1="1" x2="1" y2="height-2"/>
  197.   <line color="gtk:light[NORMAL]"
  198.         x1="1" y1="1" x2="width-2" y2="1"/>
  199.   <line color="gtk:dark[NORMAL]"
  200.         x1="width-2" y1="1" x2="width-2" y2="height-2"/>
  201.   <line color="gtk:dark[NORMAL]"
  202.         x1="1" y1="height-2" x2="width-2" y2="height-2"/>        
  203. </draw_ops>
  204.  
  205. <draw_ops name="blank">
  206. <!-- nothing -->
  207. </draw_ops>
  208.  
  209. <draw_ops name="focus_outline">
  210.   <rectangle color="gtk:fg[NORMAL]"
  211.              x="left_width-1" y="top_height-1"
  212.              width="width-left_width-right_width+1"
  213.              height="height-top_height-bottom_height+1"/>
  214. </draw_ops>
  215.  
  216. <draw_ops name="focus_background">
  217.   <include name="outer_bevel"/>
  218.   <include name="focus_outline"/>
  219. </draw_ops>
  220.  
  221. <draw_ops name="background_unfocused">
  222.   <include name="outer_bevel"/>
  223.   <include name="focus_outline"/>
  224. </draw_ops>
  225.  
  226. <draw_ops name="title_box">
  227. <rectangle color="gtk:fg[NORMAL]" filled="false"
  228.              x="0" y="1" width="width-SpacerWidth+3" height="height-2"/>
  229. <line color="#BBBBBB"
  230.         x1="2"
  231.         y1="height-2"
  232.         x2="width-SpacerWidth+2"
  233.         y2="height-2"
  234.         width="1"/>
  235. <line color="#BBBBBB"
  236.         x1="width-5"
  237.         y1="2"
  238.         x2="width-SpacerWidth+2"
  239.         y2="height-2"
  240.         width="1"/>
  241. <rectangle color="gtk:bg[SELECTED]" filled="true"
  242.          x="1" y="2" width="width-5" height="height-3"/>
  243. </draw_ops>
  244.  
  245. <draw_ops name="title_spacer">
  246.   <gtk_vline state="normal" x="width+1-SpacerWidth/2"
  247.              y1="(height-SpacerHeight)/2"
  248.              y2="height - (height-SpacerHeight)/2"/>
  249. </draw_ops>
  250.  
  251. <draw_ops name="title_text_focused_no_icon">
  252.   <clip x="3" y="2" width="width-SpacerWidth-2" height="height-4"/>
  253.   <title color="gtk:fg[SELECTED]"
  254.          x="(3 `max` (width-title_width)) / 2+2"
  255.          y="((height - title_height) / 2) `max` 0"/>
  256. </draw_ops>
  257.  
  258. <draw_ops name="title_text_no_icon">
  259.   <clip x="3" y="2" width="width-SpacerWidth-2" height="height-4"/>
  260.   <title color="gtk:fg[NORMAL]"
  261.          x="(3 `max` (width-title_width)) / 2+2"
  262.          y="((height - title_height) / 2) `max` 0"/>
  263. </draw_ops>
  264.  
  265. <draw_ops name="title_normal">
  266.   <include name="title_text_no_icon"/>
  267. </draw_ops>
  268.  
  269. <draw_ops name="title_focused">
  270.   <include name="title_box"/>
  271.   <include name="title_text_focused_no_icon"/>
  272. </draw_ops>
  273.  
  274. <draw_ops name="title_utility">
  275.   <include name="title_spacer"/>
  276.   <include name="title_text_no_icon"/>
  277. </draw_ops>
  278.  
  279. <draw_ops name="title_utility_focused">
  280.   <include name="title_box"/>
  281.   <include name="title_spacer"/>
  282.   <include name="title_text_focused_no_icon"/>
  283. </draw_ops>
  284.  
  285. <frame_style name="normal_unfocused" geometry="normal">
  286.   <piece position="entire_background" draw_ops="background_unfocused"/>
  287.   <piece position="title" draw_ops="title_normal"/>
  288.  
  289.   <!-- we don't specify for prelight, so normal is used -->
  290.   <button function="close" state="normal" draw_ops="close_button_normal"/>
  291.   <button function="close" state="pressed" draw_ops="close_button_pressed"/>
  292.   <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
  293.   <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
  294.   <button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
  295.   <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
  296.   <button function="menu" state="normal" draw_ops="menu_button_normal"/>
  297.   <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
  298. </frame_style>
  299.  
  300. <frame_style name="normal_focused" geometry="normal" parent="normal_unfocused">
  301.   <piece position="entire_background" draw_ops="focus_background"/>
  302.   <piece position="title" draw_ops="title_focused"/>
  303. </frame_style>
  304.  
  305. <frame_style name="maximized_unfocused" geometry="normal_small_borders" parent="normal_unfocused">
  306.   <piece position="entire_background" draw_ops="blank"/>
  307.   <button function="maximize" state="normal" draw_ops="restore_button_normal"/>
  308.   <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
  309. </frame_style>
  310.  
  311. <frame_style name="maximized_focused" geometry="normal_small_borders" parent="normal_focused">
  312.   <piece position="entire_background" draw_ops="focus_outline"/>
  313.   <button function="maximize" state="normal" draw_ops="restore_button_normal"/>
  314.   <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
  315. </frame_style>
  316.  
  317. <frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused">
  318.   <piece position="title" draw_ops="title_utility"/>
  319. </frame_style>
  320.  
  321. <frame_style name="utility_focused" geometry="utility" parent="normal_focused">
  322.   <piece position="title" draw_ops="title_utility_focused"/>
  323. </frame_style>
  324.  
  325. <frame_style name="border" geometry="border" parent="normal_unfocused">
  326.   <piece position="entire_background" draw_ops="outer_bevel"/>
  327.   <piece position="title" draw_ops="blank"/>
  328. </frame_style>
  329.  
  330. <frame_style_set name="normal">
  331. <frame focus="yes" state="normal" resize="both" style="normal_focused"/>
  332. <frame focus="no" state="normal" resize="both" style="normal_unfocused"/>
  333. <frame focus="yes" state="maximized" style="maximized_focused"/>
  334. <frame focus="no" state="maximized" style="maximized_unfocused"/>
  335. <frame focus="yes" state="shaded" style="normal_focused"/>
  336. <frame focus="no" state="shaded" style="normal_unfocused"/>
  337. <frame focus="yes" state="maximized_and_shaded" style="maximized_focused"/>
  338. <frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/>
  339. </frame_style_set>
  340.  
  341. <frame_style_set name="utility" parent="normal">
  342. <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
  343. <frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
  344. <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
  345. <frame focus="yes" state="maximized" style="utility_focused"/>
  346. <frame focus="no" state="maximized" style="utility_unfocused"/>
  347. <frame focus="yes" state="shaded" style="utility_focused"/>
  348. <frame focus="no" state="shaded" style="utility_unfocused"/>
  349. <frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
  350. <frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
  351. </frame_style_set>
  352.  
  353. <frame_style_set name="border">
  354. <frame focus="yes" state="normal" resize="both" style="border"/>
  355. <frame focus="no" state="normal" resize="both" style="border"/>
  356. <frame focus="yes" state="maximized" style="border"/>
  357. <frame focus="no" state="maximized" style="border"/>
  358. <frame focus="yes" state="shaded" style="border"/>
  359. <frame focus="no" state="shaded" style="border"/>
  360. <frame focus="yes" state="maximized_and_shaded" style="border"/>
  361. <frame focus="no" state="maximized_and_shaded" style="border"/>
  362. </frame_style_set>
  363.  
  364. <window type="normal" style_set="normal"/>
  365. <window type="dialog" style_set="normal"/>
  366. <window type="modal_dialog" style_set="normal"/>
  367. <window type="menu" style_set="normal"/>
  368. <window type="utility" style_set="utility"/>
  369. <window type="border" style_set="border"/>
  370.  
  371. <menu_icon function="close" state="normal" draw_ops="close_button_normal"/>
  372. <menu_icon function="maximize" state="normal" draw_ops="maximize_button_normal"/>
  373. <menu_icon function="unmaximize" state="normal" draw_ops="restore_button_normal"/>
  374. <menu_icon function="minimize" state="normal" draw_ops="minimize_button_normal"/>
  375.  
  376. </metacity_theme>
  377.